# Settings
CC              = g++
CFLAGS          = -Wall
EXEC			= plc
SRCS            = main.cpp Administration.cpp Token.cpp Numeric.cpp Scanner.cpp Word.cpp SymbolTable.cpp PLset.cpp First.cpp Follow.cpp Parser.cpp WordData.cpp DataNumber.cpp DataBool.cpp DataID.cpp DataProcedure.cpp Assembler.cpp AssemblerMIPS.cpp
OBJS            = $(SRCS:.cpp=.o)
HDRS			= $(SRCS:.cpp=.h)


# Exec Targets
$(EXEC):	$(OBJS) 
		$(CC) $(LIBRARIES) -o $@ $(OBJS)

# Objects 
$(OBJS):	$(SRCS) $(HDRS) Makefile 
		$(CC) $(MACRO) $(CFLAGS) -c $(SRCS)

# Clean up
clean:  
		rm -f $(OBJS) $(EXEC)
